package 作业;

import 作业.Circle;

public class CircleTest {
    //Circle 圆对象
    //time  次数

    public void printAreas(Circle circle, int time){
        System.out.println("半径\t\t" + "面积");
        //初始化值  循环条件 循环体 数据更新迭代
            for (int i = 1; i <=time ; i++) {


                circle.radius = i;
                double s = circle.findArea();

                System.out.println(circle.radius +
                        "\t\t" + s);

            }
    }
}
